﻿# FindTUCAM_API.cmake

find_path(TUCAM_API_INCLUDE_DIRS
            NAMES 
                TUCamApi.h
            HINTS 
                "${CMAKE_CURRENT_SOURCE_DIR}/CameraTUCAM/sdk/inc/"
                "${CMAKE_CURRENT_SOURCE_DIR}/sdk/inc/"
            )

find_library(TUCAM_API_LIBRARIES
            NAMES
                TUCam.lib
            PATHS
                "${CMAKE_CURRENT_SOURCE_DIR}/CameraTUCAM/sdk/lib/x64"
                "${CMAKE_CURRENT_SOURCE_DIR}/sdk/lib/x64"
            )


include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TUCAM_API
            FOUND_VAR
                TUCAM_API_FOUND
            REQUIRED_VARS
                TUCAM_API_INCLUDE_DIRS
                TUCAM_API_LIBRARIES
                )


mark_as_advanced(TUCAM_API_LIBRARIES) # show entry in cmake-gui

